package com.iswust.visual.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iswust.visual.model.BayonetData;
import com.iswust.visual.model.dto.BayonetDayNumDto;
import com.iswust.visual.model.vo.DateTimeVo;
import com.iswust.visual.model.vo.MainViewVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author swust
 * @since 2023-02-17
 */

public interface BayonetDataMapper extends BaseMapper<BayonetData> {

   List<BayonetData> getBayonetDataByDate(@Param("dateTimeVo") DateTimeVo dateTimeVo);

   List<BayonetData> getBayonetDataByDateAndName(@Param("dateTimeVo") DateTimeVo dateTimeVo, @Param("name") String name);

   List<MainViewVo> getBayonetDataWithSumByDate(@Param("dateTimeVo") DateTimeVo dateTimeVo);

   List<BayonetDayNumDto> getBayonetDataByMonth(@Param("dateTimeVo") DateTimeVo dateTimeVo);

}
